package com.example.streamtransport.Handler.Aop;

import com.example.streamtransport.Model.TestARequest;
import com.example.streamtransport.Model.TestAResponse;
import com.mediator.Annotations.PipeLine;
import com.mediator.Aop.IPipeline;
import com.mediator.Request.IRequest;

@PipeLine
public class Pipeline implements IPipeline<TestARequest, TestAResponse> {
    @Override
    public void BeforeForHandler(IRequest<TestAResponse> para)
    {
       System.out.println("BeforeForHandler");
    }

    @Override
    public void AfterForHandler(TestAResponse res)
    {
        System.out.println("AfterForHandler");
    }

    @Override
    public void HandlerException(Exception ex)
    {
        System.out.println("HandlerException");
    }
}
